﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GSLMS.Entity;
using System.ServiceModel;
using GSLMS.Entity.DTO;

namespace GSLMS.Services.Interface
{
    public interface IRoles
    {

        [OperationContract]
        List<Role> GetAll();
        [OperationContract]
        List<Role> GetAll(UniversallySearchParam searchparma);
        [OperationContract]
        List<VRolePurview> GetVRolePurviewByID(long id);
        [OperationContract]
        Role GetByID(long id);
        [OperationContract]
        bool Add(Role model);
        [OperationContract]
        bool Update(Role model);
        [OperationContract]
        bool Delete(long id);

        /// <summary>
        /// 分页提取数据
        /// </summary>
        [OperationContract]
        List<GSLMS.Entity.Role> GetList(GSLMS.Entity.Role searchParam);
    }
}
